package com.zzmm.socket.qq.common;

import java.util.HashMap;
import java.util.Map;

public class QQConstant {

    public static final int SERVER_PORT = 9998;




    public static final class MessageType {
        // 登录
        public static final Integer LOGIN = 1;
        // 在线用户列表
        public static final Integer LIST_ONLINE_USER = 2;
        // 退出
        public static final Integer LOGOUT = 4;
        // 私聊
        public static final Integer PRIVATE_CHAT = 7;
        // 群聊
        public static final Integer GROUP_CHAT = 8;
        // 文件
        public static final Integer FILE = 9;
        // 服务器推送
        public static final Integer SERVER_PUSH = 10;


    }

    public static final class ResponseStatus {
        public static final int SUCCESS = 1;
        public static final int ERROR = 0;

        public static boolean isSuccess(int responseStatus) {
            return SUCCESS == responseStatus;
        }

    }


}
